<?php
/**
 * (crontab)
 */
namespace App\Crontab\Monthly;

use Illuminate\Support\Facades\DB;
class TruncateTable
{
    /**
     * 定时清空日志记录1 0 2 * * *
     */
    public static function exe()
    {
        try{
            DB::table('laravel_exceptions')->truncate();//异常日志
            DB::table('failed_jobs')->truncate();//异常JOB
            DB::table('admin_operation_log')->truncate();//操作日志
        }catch (\Exception $e){
            report($e);
        }
    }
}
